//
//  CollectionModel.m
//  objective_c_language
//
//  Created by 王玉龙 on 2018/6/6.
//  Copyright © 2018年 longlong. All rights reserved.
//

#import "CollectionModel.h"

NSMutableArray<CollectionModel *> * loadCollectionModelData(void)
{
    NSMutableArray *array = [NSMutableArray array];
    
    for (int i = 1; i < 10; i ++)
    {
        CollectionModel *model = [[CollectionModel alloc] init];
        NSString *name = [NSString stringWithFormat:@"collection_%02d",i];
        NSString *path = [kResourceBundle pathForResource:name ofType:@"jpg"];
        model.imgae = [UIImage imageWithContentsOfFile:path];
        [array addObject:model];
    }

    
    return array;
}

@implementation CollectionModel

@end
